package com.caisejingyu.whales.common.base.impl;

import android.os.Build;
import android.text.TextUtils;

import com.caisejingyu.whales.common.base.IDeviceConfig;


/**
 * 设备信息-实现
 *
 */
@SuppressWarnings({"WeakerAccess", "unused"})
public class DeviceConfig implements IDeviceConfig {

    @Override
    public String getBrand() {
        if (TextUtils.isEmpty(Build.BRAND)) {
            return UNKNOWN;
        }
        return Build.BRAND.toUpperCase();
    }

    @Override
    public String getProduct() {
        if (TextUtils.isEmpty(Build.PRODUCT)) {
            return UNKNOWN;
        }
        return Build.PRODUCT.toUpperCase();
    }



}
